import ApiControler from "./request";
const http = {
  /***
   * method请求
   * @param url请求地址
   * @param params请求参数
   */
  get(url, params) {
    const config = {
      method: "get",
      url: url,
    };
    if (params) {
      config.params = params;
    }
    return ApiControler.ApiPoster(config);
  },
  get2(url, params) {
    const config = {
      method: "get",
      url: url,
    };
    if (params) {
      config.params = params;
    }
    return ApiControler.ApiPoster2(config);
  },
};

export default http;
